hipreme_engine v1.0.14 (2023-12-23T18:43:10Z)
Dub
Repo
ResamplingContext
hip
audio_decoding
resampler
Undocumented in source.
version(none)
nothrow @
trusted
@
nogc
abstract
class
ResamplingContext {
int
inputSampleRate
;
int
outputSampleRate
;
int
inputChannels
;
int
outputChannels
;
SpeexResampler
resamplerLeft
;
SpeexResampler
resamplerRight
;
SpeexResampler
.
Data
resamplerDataLeft
;
SpeexResampler
.
Data
resamplerDataRight
;
float
[][
2
]
buffersIn
;
float
[][
2
]
buffersOut
;
uint
rateNum
;
uint
rateDem
;
float
[][
2
]
dataReady
;
SampleControlFlags
scflags
;
this
(SampleControlFlags scflags, int inputSampleRate, int outputSampleRate, int inputChannels, int outputChannels);
void
loadMoreSamples
();
bool
loadMore
();
bool
fillBuffer
(short[] buffer);
bool
fillBuffer
(float[] buffer);
}
Constructors
this
this
(SampleControlFlags scflags, int inputSampleRate, int outputSampleRate, int inputChannels, int outputChannels)
Undocumented in source.
Members
Functions
fillBuffer
bool
fillBuffer
(short[] buffer)
Undocumented in source. Be warned that the author may not have intended to support it.
fillBuffer
bool
fillBuffer
(float[] buffer)
Undocumented in source. Be warned that the author may not have intended to support it.
loadMore
bool
loadMore
()
Undocumented in source. Be warned that the author may not have intended to support it.
loadMoreSamples
void
loadMoreSamples
()
Undocumented in source.
Variables
buffersIn
float
[][
2
]
buffersIn
;
Undocumented in source.
buffersOut
float
[][
2
]
buffersOut
;
Undocumented in source.
dataReady
float
[][
2
]
dataReady
;
Undocumented in source.
inputChannels
int
inputChannels
;
Undocumented in source.
inputSampleRate
int
inputSampleRate
;
Undocumented in source.
outputChannels
int
outputChannels
;
Undocumented in source.
outputSampleRate
int
outputSampleRate
;
Undocumented in source.
rateDem
uint
rateDem
;
Undocumented in source.
rateNum
uint
rateNum
;
Undocumented in source.
resamplerDataLeft
SpeexResampler
.
Data
resamplerDataLeft
;
Undocumented in source.
resamplerDataRight
SpeexResampler
.
Data
resamplerDataRight
;
Undocumented in source.
resamplerLeft
SpeexResampler
resamplerLeft
;
Undocumented in source.
resamplerRight
SpeexResampler
resamplerRight
;
Undocumented in source.
scflags
SampleControlFlags
scflags
;
Undocumented in source.
Meta
Source
See Implementation
hip
audio_decoding
resampler
classes
ResamplingContext
SampleControlFlags
functions
computeFunc
cubicCoef
gcd
resamplerBasicDirect
resamplerBasicInterpolate
sinc
interfaces
SampleController
manifest constants
BUFFER_SIZE_FRAMES
BUFFER_SIZE_SHORT
static variables
Kaiser10
Kaiser12
Kaiser6
Kaiser8
kaiser10Table
kaiser12Table
kaiser6Table
kaiser8Table
qualityMap
structs
CubicUpsampler
FuncDef
QualityMapping
SpeexResampler